//
//  CJTopLineDetailController.m
//  Boss
//
//  Created by admin on 2018/9/21.
//  Copyright © 2018年 admin. All rights reserved.
//
#import "CJTopLineDetailController.h"

@interface CJTopLineDetailController ()
@property (nonatomic,strong)UIWebView *webView;
@end

@implementation CJTopLineDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
    // Do any additional setup after loading the view.
}
-(void)setupUI
{
    self.navigationItem.title = self.navTitle;
    self.webView = [[UIWebView alloc]init];
    self.webView.frame = CGRectMake(0, self.navHeight, kScreenWidth, kScreenHeight-self.navHeight);
    [self.view addSubview:self.webView];
//    http://192.168.1.177:8099/news/detail/4.html
    
    
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@%@",BrandDetail_DOMAIN,@"/news/detail/",self.topLineID]]];
    
    NSMutableURLRequest *mutableRequest = [request mutableCopy];
    
    [mutableRequest addValue:[WYStoreModule currentToken] forHTTPHeaderField:@"token"];
    
    [self.webView loadRequest:mutableRequest];
    
    
    
    
}



- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
